function math(num1, num2, fuhao) {
    let str1 = num1 + ''
    let str2 = num2 + ''
    let index1 = str1.indexOf('.')
    let index2 = str2.indexOf('.')
    let suff1 = str1.slice(index1 + 1)
    let suff2 = str2.slice(index2 + 1)
    if (suff1 < 0 && suff2 < 0) {
        switch (fuhao) {
            case '+':
                return num1 + num2
                break
            case '-':
                return num1 - num2
                break
            case '*':
                return num1 * num2
                break
            case '/':
                return num1 / num2
                break
        }
    }

}

export default math